package com.example.automanagement.service.serviceImpl;

import com.example.automanagement.entity.UserRole;
import com.example.automanagement.mapper.UserRoleMapper;
import com.example.automanagement.service.UserRoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Resource
    private UserRoleMapper userRoleMapper;


    @Override
    public List<UserRole> getIdByRole(String role) {
        return userRoleMapper.getIdByRole(role);
    }
}
